package engine.systems.render.perlinNoise
{
	import ash.core.Component;
	
	public class PerlinNoise extends Component
	{
		public var seed:int;
		public var channels:int;
		
		public var stitch:Boolean 		= false;
		public var grayscale:Boolean 	= false;
		public var fractalNoise:Boolean = true;
		
		public var offsets:Array 	= [];
		public var rates:Array 		= [];
		
		public function PerlinNoise(seed:int = 12345, channels:int = 15, stitch:Boolean = false, grayscale:Boolean = false, fractalNoise:Boolean = false)
		{
			this.seed 		= seed;
			this.channels 	= 15;
			
			this.stitch 		= stitch;
			this.grayscale 		= grayscale;
			this.fractalNoise 	= fractalNoise;
		}
		
		override public function destroy():void
		{
			this.offsets 	= null;
			this.rates 		= null;
		}
	}
}